#include "header.h"

class Date
{
	int d,m,y;
public:
	int day() const { return d; }
	int month() const { return m; }
	int year() const;
	int add_year(int);
};

inline int Date::year() const
{
	return y;
}
void f(Date& d, Date& cd)
{
	int i=d.year();//ok
	d.add_year(1); //ok
	int j=cd.year(); //ok
	cd.add_year(1);
}

int main()
{
	return 0;
}